package com.zwy.fornote.service;

import com.github.pagehelper.PageInfo;
import com.zwy.fornote.entity.req.NewQuestionReq;
import com.zwy.fornote.entity.req.QuestionReq;
import com.zwy.fornote.entity.vo.QuestionManageVO;
import com.zwy.fornote.model.Question;

/**
 *问题业务类接口
 *
 * @author zhuyi 1205242
 * @version QuestionService 2021/3/8 20:33
 */
public interface QuestionService {

    //创建新的问题
    int createNewQuestion(NewQuestionReq req);

    //删除问题
    int deleteQuestion(int quesId);

    //增加问题浏览量
    int AddQuestionBrowseNum(int quesId);

    //分页查询问题
    PageInfo<Question> selectQuestions(QuestionReq req);

    PageInfo<QuestionManageVO> selectQuestionManageList(QuestionReq req);
}
